import request from '@/utils/request'
const url = '/api/test_case/'
export function fetchList(query) {
  return request({
    url: url,
    method: 'get',
    params: query
  })
}
export function createCase(data) {
  return request({
    url: url,
    method: 'post',
    data
  })
}

export function deleteCase(id) {
  return request({
    url: url + id + '/',
    method: 'delete'
  })
}
